package com.lion.ball.modules.orderfood.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.lion.common.spring.business.base.BaseCrudController;
import com.lion.ball.modules.orderfood.domain.entity.OfdCommentEntity;
import com.lion.ball.modules.orderfood.web.model.params.create.OfdCommentCreateParam;
import com.lion.ball.modules.orderfood.web.model.params.update.OfdCommentUpdateParam;
import com.lion.ball.modules.orderfood.web.model.params.search.OfdCommentSearchParam;
import com.lion.ball.modules.orderfood.web.model.params.order.OfdCommentOrderParam;
import com.lion.ball.modules.orderfood.web.model.results.OfdCommentResult;
import com.lion.ball.modules.orderfood.dao.repository.OfdCommentRepository;
import com.lion.ball.modules.orderfood.service.assistants.converters.OfdCommentConverter;
import com.lion.ball.modules.orderfood.service.def.OfdCommentService;
import com.lion.ball.modules.orderfood.web.api.OfdCommentApi;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 评论 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("ofd/comment")
public class OfdCommentController implements OfdCommentApi, BaseCrudController<
        OfdCommentEntity,
        OfdCommentCreateParam,
        OfdCommentUpdateParam,
        OfdCommentSearchParam,
        OfdCommentOrderParam,
        OfdCommentResult,
        OfdCommentRepository,
        OfdCommentConverter,
        OfdCommentService
        > {

    @Autowired
    OfdCommentService ofdCommentService;

    @Override
    public OfdCommentService getService() {
        return ofdCommentService;
    }
}